/*
 * XML Type:  XCellLocation
 * Namespace: http://www.seedwill.com/xul/core
 * Java type: com.seedwill.xul.core.XCellLocation
 *
 * Automatically generated - do not modify.
 */
package com.seedwill.xul.core.impl;
/**
 * An XML XCellLocation(@http://www.seedwill.com/xul/core).
 *
 * This is a complex type.
 */
public class XCellLocationImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements com.seedwill.xul.core.XCellLocation
{
    private static final long serialVersionUID = 1L;
    
    public XCellLocationImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName COLUMNSTART$0 = 
        new javax.xml.namespace.QName("", "columnStart");
    private static final javax.xml.namespace.QName ROWSTART$2 = 
        new javax.xml.namespace.QName("", "rowStart");
    private static final javax.xml.namespace.QName COLUMNSPAN$4 = 
        new javax.xml.namespace.QName("", "columnSpan");
    private static final javax.xml.namespace.QName ROWSPAN$6 = 
        new javax.xml.namespace.QName("", "rowSpan");
    private static final javax.xml.namespace.QName ALIGN$8 = 
        new javax.xml.namespace.QName("", "align");
    private static final javax.xml.namespace.QName ROWPOS$10 = 
        new javax.xml.namespace.QName("", "rowPos");
    private static final javax.xml.namespace.QName COLPOS$12 = 
        new javax.xml.namespace.QName("", "colPos");
    
    
    /**
     * Gets the "columnStart" element
     */
    public int getColumnStart()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(COLUMNSTART$0, 0);
            if (target == null)
            {
                return 0;
            }
            return target.getIntValue();
        }
    }
    
    /**
     * Gets (as xml) the "columnStart" element
     */
    public org.apache.xmlbeans.XmlInt xgetColumnStart()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlInt target = null;
            target = (org.apache.xmlbeans.XmlInt)get_store().find_element_user(COLUMNSTART$0, 0);
            return target;
        }
    }
    
    /**
     * Sets the "columnStart" element
     */
    public void setColumnStart(int columnStart)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(COLUMNSTART$0, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(COLUMNSTART$0);
            }
            target.setIntValue(columnStart);
        }
    }
    
    /**
     * Sets (as xml) the "columnStart" element
     */
    public void xsetColumnStart(org.apache.xmlbeans.XmlInt columnStart)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlInt target = null;
            target = (org.apache.xmlbeans.XmlInt)get_store().find_element_user(COLUMNSTART$0, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlInt)get_store().add_element_user(COLUMNSTART$0);
            }
            target.set(columnStart);
        }
    }
    
    /**
     * Gets the "rowStart" element
     */
    public int getRowStart()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ROWSTART$2, 0);
            if (target == null)
            {
                return 0;
            }
            return target.getIntValue();
        }
    }
    
    /**
     * Gets (as xml) the "rowStart" element
     */
    public org.apache.xmlbeans.XmlInt xgetRowStart()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlInt target = null;
            target = (org.apache.xmlbeans.XmlInt)get_store().find_element_user(ROWSTART$2, 0);
            return target;
        }
    }
    
    /**
     * Sets the "rowStart" element
     */
    public void setRowStart(int rowStart)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ROWSTART$2, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(ROWSTART$2);
            }
            target.setIntValue(rowStart);
        }
    }
    
    /**
     * Sets (as xml) the "rowStart" element
     */
    public void xsetRowStart(org.apache.xmlbeans.XmlInt rowStart)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlInt target = null;
            target = (org.apache.xmlbeans.XmlInt)get_store().find_element_user(ROWSTART$2, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlInt)get_store().add_element_user(ROWSTART$2);
            }
            target.set(rowStart);
        }
    }
    
    /**
     * Gets the "columnSpan" element
     */
    public int getColumnSpan()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(COLUMNSPAN$4, 0);
            if (target == null)
            {
                return 0;
            }
            return target.getIntValue();
        }
    }
    
    /**
     * Gets (as xml) the "columnSpan" element
     */
    public org.apache.xmlbeans.XmlInt xgetColumnSpan()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlInt target = null;
            target = (org.apache.xmlbeans.XmlInt)get_store().find_element_user(COLUMNSPAN$4, 0);
            return target;
        }
    }
    
    /**
     * Sets the "columnSpan" element
     */
    public void setColumnSpan(int columnSpan)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(COLUMNSPAN$4, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(COLUMNSPAN$4);
            }
            target.setIntValue(columnSpan);
        }
    }
    
    /**
     * Sets (as xml) the "columnSpan" element
     */
    public void xsetColumnSpan(org.apache.xmlbeans.XmlInt columnSpan)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlInt target = null;
            target = (org.apache.xmlbeans.XmlInt)get_store().find_element_user(COLUMNSPAN$4, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlInt)get_store().add_element_user(COLUMNSPAN$4);
            }
            target.set(columnSpan);
        }
    }
    
    /**
     * Gets the "rowSpan" element
     */
    public int getRowSpan()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ROWSPAN$6, 0);
            if (target == null)
            {
                return 0;
            }
            return target.getIntValue();
        }
    }
    
    /**
     * Gets (as xml) the "rowSpan" element
     */
    public org.apache.xmlbeans.XmlInt xgetRowSpan()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlInt target = null;
            target = (org.apache.xmlbeans.XmlInt)get_store().find_element_user(ROWSPAN$6, 0);
            return target;
        }
    }
    
    /**
     * Sets the "rowSpan" element
     */
    public void setRowSpan(int rowSpan)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ROWSPAN$6, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(ROWSPAN$6);
            }
            target.setIntValue(rowSpan);
        }
    }
    
    /**
     * Sets (as xml) the "rowSpan" element
     */
    public void xsetRowSpan(org.apache.xmlbeans.XmlInt rowSpan)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlInt target = null;
            target = (org.apache.xmlbeans.XmlInt)get_store().find_element_user(ROWSPAN$6, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlInt)get_store().add_element_user(ROWSPAN$6);
            }
            target.set(rowSpan);
        }
    }
    
    /**
     * Gets the "align" element
     */
    public com.seedwill.xul.core.XCellAlign.Enum getAlign()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ALIGN$8, 0);
            if (target == null)
            {
                return null;
            }
            return (com.seedwill.xul.core.XCellAlign.Enum)target.getEnumValue();
        }
    }
    
    /**
     * Gets (as xml) the "align" element
     */
    public com.seedwill.xul.core.XCellAlign xgetAlign()
    {
        synchronized (monitor())
        {
            check_orphaned();
            com.seedwill.xul.core.XCellAlign target = null;
            target = (com.seedwill.xul.core.XCellAlign)get_store().find_element_user(ALIGN$8, 0);
            return target;
        }
    }
    
    /**
     * Sets the "align" element
     */
    public void setAlign(com.seedwill.xul.core.XCellAlign.Enum align)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ALIGN$8, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(ALIGN$8);
            }
            target.setEnumValue(align);
        }
    }
    
    /**
     * Sets (as xml) the "align" element
     */
    public void xsetAlign(com.seedwill.xul.core.XCellAlign align)
    {
        synchronized (monitor())
        {
            check_orphaned();
            com.seedwill.xul.core.XCellAlign target = null;
            target = (com.seedwill.xul.core.XCellAlign)get_store().find_element_user(ALIGN$8, 0);
            if (target == null)
            {
                target = (com.seedwill.xul.core.XCellAlign)get_store().add_element_user(ALIGN$8);
            }
            target.set(align);
        }
    }
    
    /**
     * Gets the "rowPos" element
     */
    public int getRowPos()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ROWPOS$10, 0);
            if (target == null)
            {
                return 0;
            }
            return target.getIntValue();
        }
    }
    
    /**
     * Gets (as xml) the "rowPos" element
     */
    public org.apache.xmlbeans.XmlInt xgetRowPos()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlInt target = null;
            target = (org.apache.xmlbeans.XmlInt)get_store().find_element_user(ROWPOS$10, 0);
            return target;
        }
    }
    
    /**
     * Sets the "rowPos" element
     */
    public void setRowPos(int rowPos)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ROWPOS$10, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(ROWPOS$10);
            }
            target.setIntValue(rowPos);
        }
    }
    
    /**
     * Sets (as xml) the "rowPos" element
     */
    public void xsetRowPos(org.apache.xmlbeans.XmlInt rowPos)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlInt target = null;
            target = (org.apache.xmlbeans.XmlInt)get_store().find_element_user(ROWPOS$10, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlInt)get_store().add_element_user(ROWPOS$10);
            }
            target.set(rowPos);
        }
    }
    
    /**
     * Gets the "colPos" element
     */
    public int getColPos()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(COLPOS$12, 0);
            if (target == null)
            {
                return 0;
            }
            return target.getIntValue();
        }
    }
    
    /**
     * Gets (as xml) the "colPos" element
     */
    public org.apache.xmlbeans.XmlInt xgetColPos()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlInt target = null;
            target = (org.apache.xmlbeans.XmlInt)get_store().find_element_user(COLPOS$12, 0);
            return target;
        }
    }
    
    /**
     * Sets the "colPos" element
     */
    public void setColPos(int colPos)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(COLPOS$12, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(COLPOS$12);
            }
            target.setIntValue(colPos);
        }
    }
    
    /**
     * Sets (as xml) the "colPos" element
     */
    public void xsetColPos(org.apache.xmlbeans.XmlInt colPos)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlInt target = null;
            target = (org.apache.xmlbeans.XmlInt)get_store().find_element_user(COLPOS$12, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlInt)get_store().add_element_user(COLPOS$12);
            }
            target.set(colPos);
        }
    }
}
